import request from "@/utils/request";

//查询所有员工信息,分页查询
export const searchAll = (page,pageSize,name,gender,begin,end) => {return request.get(`/emps?page=${page}&pageSize=${pageSize}&name=${name}&gender=${gender}&begin=${begin}&end=${end}`);};

//添加员工
export const saveEmpExpr = (emp) => {return request.post("/emps",emp);};

//回显查询
export const getEmpById = (id) => {return request.get(`/emps/${id}`);};

//修改员工信息
export const updateEmpDate = (emp) => {return request.put(`/emps`,emp);};

//删除员工信息
export const deleteByIdEmp = (ids) => {return request.delete(`/emps?ids=${ids}`);};